.class Lcom/brixd/niceapp/community/activity/AppListActivity$2;
.super Ljava/lang/Object;
.source "AppListActivity.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/community/activity/AppListActivity;->initWidgetsActions()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/community/activity/AppListActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/community/activity/AppListActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/community/activity/AppListActivity;

    .prologue
    .line 117
    iput-object p1, p0, Lcom/brixd/niceapp/community/activity/AppListActivity$2;->this$0:Lcom/brixd/niceapp/community/activity/AppListActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .registers 10
    .param p2, "view"    # Landroid/view/View;
    .param p3, "position"    # I
    .param p4, "id"    # J
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .line 121
    .local p1, "parent":Landroid/widget/AdapterView;, "Landroid/widget/AdapterView<*>;"
    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/AppListActivity$2;->this$0:Lcom/brixd/niceapp/community/activity/AppListActivity;

    # invokes: Lcom/brixd/niceapp/community/activity/AppListActivity;->getContext()Landroid/content/Context;
    invoke-static {v2}, Lcom/brixd/niceapp/community/activity/AppListActivity;->access$500(Lcom/brixd/niceapp/community/activity/AppListActivity;)Landroid/content/Context;

    move-result-object v2

    invoke-static {v2}, Lcom/brixd/niceapp/util/KeyboardController;->hideKeyboard(Landroid/content/Context;)V

    .line 123
    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/AppListActivity$2;->this$0:Lcom/brixd/niceapp/community/activity/AppListActivity;

    # getter for: Lcom/brixd/niceapp/community/activity/AppListActivity;->mSearchedApps:Ljava/util/LinkedList;
    invoke-static {v2}, Lcom/brixd/niceapp/community/activity/AppListActivity;->access$200(Lcom/brixd/niceapp/community/activity/AppListActivity;)Ljava/util/LinkedList;

    move-result-object v2

    invoke-virtual {v2, p3}, Ljava/util/LinkedList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/brixd/niceapp/community/model/InstalledAppModel;

    .line 124
    .local v0, "app":Lcom/brixd/niceapp/community/model/InstalledAppModel;
    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    .line 125
    .local v1, "data":Landroid/content/Intent;
    const-string v2, "AppName"

    invoke-virtual {v0}, Lcom/brixd/niceapp/community/model/InstalledAppModel;->getName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 126
    const-string v2, "PackageName"

    invoke-virtual {v0}, Lcom/brixd/niceapp/community/model/InstalledAppModel;->getPackageName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 127
    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/AppListActivity$2;->this$0:Lcom/brixd/niceapp/community/activity/AppListActivity;

    const/4 v3, -0x1

    invoke-virtual {v2, v3, v1}, Lcom/brixd/niceapp/community/activity/AppListActivity;->setResult(ILandroid/content/Intent;)V

    .line 128
    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/AppListActivity$2;->this$0:Lcom/brixd/niceapp/community/activity/AppListActivity;

    invoke-virtual {v2}, Lcom/brixd/niceapp/community/activity/AppListActivity;->finish()V

    .line 129
    return-void
.end method
